package com.mb.microservice.framework.exception;

/**
 * @program: microservice-parent
 * @description:
 * @author: Eibons
 * @create: 2020-10-29 13:56
 **/
public enum ResultEnum {
    
    SUCCESS(1, "请求成功"),
    PARAMETER_ERROR(4006, "请求参数有误!"),
    UNKNOWN_ERROR(5000, "未知的错误!");
    
    private Integer code;
    private String message;
    
    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    
    public Integer getCode() {
        return code;
    }
    
    public String getMessage() {
        return message;
    }
}
